<!--$ID:属性列表  Jack Liu 204-12-28  $-->
<table id="attribute-list-table" class="qs-table" cellpadding="3" cellspacing="1" width="100%">			
	<tr class="qs-header">
		<th align="left" width="100px">
			<input onclick="listTable.selectAll(this,'checkboxes[]')" type="checkbox">
			<a href="javascript:listTable.sort('attr_id');">编号</a>      
		</th>
		<th align="left" width="200px">
			<a href="javascript:listTable.sort('attr_name');">属性名称</a>
		</th>
		<th align="left" width="100px">
			<a href="javascript:listTable.sort('cat_id');">商品类型</a>
		</th>
		<th align="left">
			<a href="javascript:listTable.sort('attr_input_type');">属性值的录入方式</a>
		</th>
		<th align="left">可选值列表</th>
		<th align="left" width="100px">
			<a href="javascript:listTable.sort('sort_order');">排序</a>
			<img src="__PUBLIC__/image/admin/sort_desc.gif">
		</th>
		<th align="left" width="150px">操作</th>
	</tr>
	<volist name="attribute_list" id="attribute">
	<tr id="tr_{$attribute.attr_id}" class="data">
		<td nowrap="true" valign="top" class="first">
			<span>
				<input value="{$attribute.attr_id}" name="checkboxes[]" data="id" type="checkbox">{$attribute.attr_id}
			</span>
		</td>
		<td class="first-cell" nowrap="true" valign="top">
			<span onclick="listTable.edit(this, 'attr_name', {$attribute.attr_id})">{$attribute.attr_name}</span>
		</td>
		<td nowrap="true" valign="top">
			<span>{$attribute.cat_name}</span>
		</td>
		<td nowrap="true" valign="top">
			<span>{$attribute.attr_input_type_desc}</span>
		</td>
		<td valign="top">
			<span>{$attribute.attr_values}</span>
		</td>
		<td align="right" nowrap="true" valign="top">
			<span onclick="listTable.edit(this, 'edit_sort_order', {$attribute.attr_id})">{$attribute.sort_order}</span>
		</td>
		<td align="center" nowrap="true" valign="top">
			<a href="__URL__/mod_attribute?attr_id={$attribute.attr_id}" title="编辑">
				<img src="__PUBLIC__/image/admin/icon_edit.gif" border="0" height="16" width="16">
			</a>
			<a href="javascript:listTable.remove({$attribute.attr_id},'确定删除','');" title="移除">
				<img src="__PUBLIC__/image/admin/icon_drop.gif" border="0" height="16" width="16">
			</a>
		</td>
	</tr>
	</volist>
	<tr class="qs-footer">
		<td class="first" colspan="7" align="left">
			<a href="javascript:listTable.removeAll('attribute-list-table');" style="display:block;float:left;border:1px solid red;background:#adadad;">删除选中</a>				
		</td>
	</tr>
</table>